package com.spt.security.dao;

import java.util.List;
import java.util.Map;

public interface IShiroUser {

    Map<String, Object> getByUsername(String userName);
    
    String encryptPasswd(String passwd,String userName);
    
    List<Map<String, Object>> getUsers();
    
    Map<String, Object> addUser(Map<String, String> param) throws Exception;
    
    void delUser(String userId) throws Exception;
    
    void modifyPasswd(String oldPasswd, String newPasswd, String userName) throws Exception;
    
    void resetPasswd(String userName);
    
    
    Map<String, Object> modifyUserRoles(Map<String, String> param);
}
